package com.qd.common.panda.domain.entity.stroke;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 保安确认
 *
 * @author sjk
 */
@Data
@Accessors(chain = true)
public class ConfirmDTO {
    /**
     * 确认ID
     */
    @NotBlank(message = "行程ID不能为空")
    @Size(max = 50, message = "行程ID长度不能超过{max}位")
    @JsonProperty(value = "cid")
    private String cid;
    /**
     * 未放行理由
     */
    @Size(max = 50, message = "未放行理由长度不能超过{max}位")
    private String notReason;
    /**
     * 备注
     */
    @Size(max = 200, message = "备注长度不能超过{max}位")
    private String note;

    public void freeData() {
        this.cid = null;
        this.notReason = null;
        this.note = null;
    }
}
